package entity

import (
	"time"

	"shqsoft.cn/pas3ui/base"
)

//ShIndiKhjlZbzs 业务指标评分标准
type ShIndiKhjlZbzs struct {
	FZID         int          `gorm:"AUTO_INCREMENT;primary_key;column:FZID"`
	DTID         time.Time    `gorm:"column:DTID"`
	ZBNO         int          `gorm:"column:ZBID"`
	ShConfKhjlZb ShConfKhjlZb `gorm:"ForeignKey:ZBNO"`
	ZBFZ         float64      `gorm:"column:ZBFZ"`
}

//TableName
func (ShIndiKhjlZbzs) TableName() string {
	return "SH_KHJL_ZBZS"
}

//ShIndiKhjlZbzsEF 返回结构体
func ShIndiKhjlZbzsEF() base.EntityFunc {
	return func() interface{} {
		entity := ShIndiKhjlZbzs{}
		return &entity
	}
}

//ShIndiKhjlZbzsESF 返回结构体数组
func ShIndiKhjlZbzsESF() base.EntitiesFunc {
	return func() interface{} {
		var entities []ShIndiKhjlZbzs
		return &entities
	}
}

func init() {
	relationship := []string{"ShConfKhjlZb"}
	base.DaoPoolObj.Put("ShIndiKhjlZbzs", base.NewDefaultDao(ShIndiKhjlZbzsEF(), ShIndiKhjlZbzsESF(), relationship, "my"))
}
